FROM redis:7-alpine

# Copy Redis settings
COPY ./redis.conf /usr/local/etc/redis/redis.conf

# Start Redis server
CMD redis-server /usr/local/etc/redis/redis.conf \
    --appendonly yes \
    --requirepass "${REDIS_PASSWORD}"
